﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ItalcoTransfer.italco.utils
{
    public class ParseUtils
    {
        /**
         * Retorna un array de strings con los elementos 
         */
        public string[] parseDelimitedFile(String line, char delimiter)
        {
            string[] data = new string[line.Split(delimiter).Length];
            int i = 0;
            foreach(string element in line.Split(delimiter))
            {
                data[i] = element;
                i++;
            }
            return data;
        }
    }
}
